package com.servlet;
import com.sun.media.sound.SoftTuning;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author cyt
 * @create 2020-08-15 10:30
 */
public class UserFilter  implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

        System.out.println("过滤器init");
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {

        filterChain.doFilter(servletRequest,servletResponse);

    }

    @Override
    public void destroy() {

        System.out.println("filter 销毁");
    }
}
